﻿using System.Configuration;

namespace Ycg.Logging.Configuration
{
    public class FileLogTargetConfigurationElement : LogTargetConfigurationElement
    {
        [ConfigurationProperty("path", DefaultValue = @"C:\Log", IsKey = true, IsRequired = true)]
        public string Path
        {
            get { return (string)base["path"]; }
            set { base["path"] = value; }
        }

        [ConfigurationProperty("nameFormat", DefaultValue = "yyyy-MM-dd$level$context")]
        public string NameFormat
        {
            get { return (string)base["nameFormat"]; }
            set { base["nameFormat"] = value; }
        }
    }
}
